From: kfraser@localhost.localdomain Date: Tue, 25 Jul 2006 10:41:45 +0000 (+0100) Subject: When installing libblktap, symlinks should be made instead of using X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15786^2~16^2~6 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=ab78272006794d6e7fd3d975ddc1f786856a78f4;p=xen.git When installing libblktap, symlinks should be made instead of using install on the symlinks (install will follow the symlink) Signed-off-by: Jeremy Katz --- diff --git a/tools/blktap/lib/Makefile b/tools/blktap/lib/Makefile index c0eb28bde1..2d5b98e41a 100644 --- a/tools/blktap/lib/Makefile +++ b/tools/blktap/lib/Makefile @@ -33,7 +33,7 @@ DEPS = .*.d OBJS = $(patsubst %.c,%.o,$(SRCS)) IBINS := -LIB = libblktap.a libblktap.so libblktap.so.$(MAJOR) libblktap.so.$(MAJOR).$(MINOR) +LIB = libblktap.a libblktap.so.$(MAJOR).$(MINOR) all: build @@ -44,10 +44,12 @@ install: all $(INSTALL_DIR) -p $(DESTDIR)/usr/$(LIBDIR) $(INSTALL_DIR) -p $(DESTDIR)/usr/include $(INSTALL_PROG) $(LIB) $(DESTDIR)/usr/$(LIBDIR) + ln -sf libblktap.so.$(MAJOR).$(MINOR) $(DESTDIR)/usr/$(LIBDIR)/libblktap.so.$(MAJOR) + ln -sf libblktap.so.$(MAJOR) $(DESTDIR)/usr/$(LIBDIR)/libblktap.so $(INSTALL_PROG) blktaplib.h $(DESTDIR)/usr/include clean: - rm -rf *.a *.so *.o *.rpm $(LIB) *~ $(DEPS) xen TAGS + rm -rf *.a *.so* *.o *.rpm $(LIB) *~ $(DEPS) xen TAGS libblktap: $(OBJS) $(CC) $(CFLAGS) -Wl,-soname -Wl,$(SONAME) -shared \